﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/MasterPage.master" AutoEventWireup="true" CodeFile="Reports.aspx.cs" Inherits="Home_Reports" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="../Controls/Report.ascx" tagname="Report" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script type="text/javascript">
     $(function() {
         $(".CheckBox input[type='checkbox']").click(function() {
             if (this.checked == true) {
                 $(this).attr("value", "checked");
             } else {
                 $(this).attr("value", "");
             }
         });       
     });
    </script>
<div class="First">
            <div class="IconTitle"><img src="../Images/icon_title.png"/></div>
            <%if (reportid == 1 || reportid == 2)
              { %>           
            <div class="Title"><%= Language[title]%>
            </div>
            <div class="ComboboxCategories">
                <p>Categories</p>                
                <asp:DropDownList ID="comboCategories" runat="server" 
                    onselectedindexchanged="comboCategories_SelectedIndexChanged" 
                    AutoPostBack="true">
                </asp:DropDownList>
            </div>
            <%}
              else
              { %>            
            <div class="ComboboxCategories2">
                <p>Categories</p>                
                <asp:DropDownList ID="comboCategories2" runat="server"                
                    onselectedindexchanged="comboCategories2_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
            
             <div class="CheckBoxPlatform">
                <%if (platforms.Count > 0)
                  {%>
                <div class="ClassLabel"><%= Language["Platform"]%></div>
                <%                  
                    for (int i = 0; i < platforms.Count; i = i + 1)
                    {
                %>
                <input type="checkbox" id="<%=platforms[i].ID%>" name="platform_<%=platforms[i].ID%>" value=""/><label for="Ios"><%=platforms[i].Name%></label>
                  <%}%>                
                <%}%>
                <asp:Button ID="btnFilter" runat="server" Text="Filter" CssClass="BtnFilter" 
                     onclick="btnFilter_Click" />
            </div>
            <%} %>
        </div>
        <div class="Second">            
            <uc1:Report ID="Report1" runat="server" />            
        </div>
</asp:Content>

